const {merge}  = require("webpack-merge");
//引入公共配置
const commonConfig = require("./webpack.common");
const CopyWebpackPlugin = require("copy-webpack-plugin")
const path  = require("path")
module.exports = merge(commonConfig,{
    mode: 'production',//告知 webpack 使用相应模式的内置优化。
    devtool: 'eval-nosources-source-map',
    plugins:[
        new CopyWebpackPlugin({ 
            patterns: [
                {
                    from: path.join('public'), 
                    to: path.join(''),
                }
            ] 
        })
    ]
})